<template>
  <el-dialog
    append-to-body
    :title="info"
    :visible.sync="dialogVisible"
    align="left"
    element-loading-text="拼命加载中"
    element-loading-spinner="el-icon-loading"
    element-loading-background="rgba(0, 0, 0, 0.8)"
    width="1500px">
    <template v-if="dialogVisible">
      <product-log-page :product-data="currData"/>
    </template>
  </el-dialog>
</template>

<script>
import ProductLogPage from '../Page/ProductLogPage'
export default {
  name: 'ProductLogListDialog',
  components: {ProductLogPage},
  props:{
    successFunction:Function
  },
  data: function () {
    return {
      info:'商品-日志-列表',
      dialogVisible: false,
      // 类型: product.商品  productStock.商品库存
      currData:{}
    }
  },
  mounted () {
  },
  methods: {
    open: function (currData) {
      this.currData=currData
      this.dialogVisible = true
      this.$forceUpdate()
    }
  }
}
</script>

<style scoped>

</style>
